package org.infinitest.intellij;

import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import org.infinitest.intellij.idea.window.InfinitestToolWindowComponent;

@SuppressWarnings("ComponentNotRegistered")
public class StartDetectingInfinitestToolWindow extends InfinitestToolWindowComponent
{
  private boolean started;
  private boolean scheduled;

  @SuppressWarnings({"UnusedDeclaration"})
  public StartDetectingInfinitestToolWindow(Project project, Module module)
  {
    super(new FakeModuleSettings("test-module"), new FakeToolWindowRegistry(),
      new FakeCompilationNotifier(), new FakeProjectCompiler());
  }

  public void startInfinitest()
  {
    started = true;
  }

  public void startInfinitestAfterStartup()
  {
    scheduled = true;
  }

  public boolean isStarted()
  {
    return started;
  }

  public boolean isScheduled()
  {
    return scheduled;
  }
}
